function y = fitness(x)
  dim = 30;
  y = 0;
  
  for index = 1: dim
    y = y + x(index) ^ 2 + x(index);
  end
end
